#include<stdio.h>
#include<stdlib.h>
int main(int argc,char **argv)
{
	char *srcfile;
	char *destfile;
    FILE *fin,*fout;
	char ch;
	srcfile=argv[1];
	destfile=argv[2];
	if(argc==3)
	{
    	fin=fopen(srcfile,"r+");
	    fout=fopen(destfile,"w+");
	    if(fin==0)
		{
	       printf("source file error!\n");
	       exit(1);
		}
        if(fout==0)
		{
	       printf("destinition file error!\n");
	       exit(1);
		}
	    while((ch=fgetc(fin))!=EOF)
		{
	       fputc(ch,fout);
		}
	   fclose(fin);
   	   fclose(fout);
	 }
	return 0;
}